package net.zoneland.geological.devicedata.controller.excelreader;

import java.util.List;
import java.util.Map;

import net.zoneland.common.excel.reader.IRowReader;

public class TestImportExcelReader implements IRowReader{
	
	/* 业务逻辑实现方法
	 * @see net.zoneland.common.excel.reader.IRowReader#getRows(int, int, java.util.List)
	 */
	public void getRows( int sheetIndex, int curRow, List<String> cols, int startRow, Map<String, Object> paramMap ) {
		if( curRow < startRow ){
			return;
		}

		if( cols != null && !cols.isEmpty() ) {
			//这里可以读取出所有的列，每一次调用都是读取的一行
			for( String col : cols ) {
				System.out.print( col + " | ");
			}
			
			System.out.println(paramMap.get("zhtId"));
			System.out.println( "" );
		}
	}	
}
